﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master"
    AutoEventWireup="true" CodeBehind="SendInvitation.aspx.cs" Inherits="Nivdal.SendInvitation"
    StylesheetTheme="SkinFile" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadPlaceHolder" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div class="basic_element">
    <div class="red_title">
       <asp:Label ID="InvitationTitleLabel" runat="server" CssClass="white_title" Text="<%$ Resources:Resource, SendInvitation_Title %>"></asp:Label>
    </div>
    <div class="padding5">

        <asp:Label ID="lblMessage" runat="server" SkinID="GreyInfoLabel" Text=""></asp:Label>
        <br />
        <asp:Label runat="server" ID="YourNameTitleLabel" Text="<%$ Resources:Resource, SendInvitation_YourNameTitle %>" SkinID="InfoLabel"></asp:Label>
        <br />
        <asp:TextBox ID="YourNameTextBox" runat="server" Width="420"></asp:TextBox>
        <br /><br />
        <asp:Label ID="FriendEmailAddressTitleLabel" runat="server" SkinID="InfoLabel"
        Text="<%$ Resources:Resource, SendInvitation_FriendEmailAddress %>"></asp:Label>
        <br />
        <asp:TextBox ID="FriendEmailAddressTextBox" runat="server" Width="420"></asp:TextBox>
        
        <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="FriendEmailAddressTextBox"
        Display="Dynamic" ErrorMessage="<%$ Resources:Resource, Global_EmailRequired %>"
        ValidationGroup="Send Invitation"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="EmailValidationExpressionValidator" runat="server"
        ControlToValidate="FriendEmailAddressTextBox" Display="Dynamic" ErrorMessage="<%$ Resources:Resource, Global_NotLegalEmail %>"
        ValidationExpression="\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" ValidationGroup="Send Invitation">
        </asp:RegularExpressionValidator>
        <br /><br />
        <asp:Label ID="FriendNameTitleLabel" runat="server" SkinID="InfoLabel"
            Text="<%$ Resources:Resource, SendInvitation_FriendName %>"></asp:Label> 
        <br />       
        <asp:TextBox ID="FriendNameTextBox" runat="server" Width="420" MaxLength="255"></asp:TextBox>
        <asp:RequiredFieldValidator ID="FriendNameRequiredFieldValidator" runat="server"
        ControlToValidate="FriendEmailAddressTextBox" Display="Dynamic" ErrorMessage="<%$ Resources:Resource, SendInvitation_FriendNameRequire %>"
        ValidationGroup="Send Invitation"></asp:RequiredFieldValidator>
        <br /><br />
        <asp:Label ID="PreferredLanguageTitleLabel" runat="server" SkinID="InfoLabel"
        Text="<%$ Resources:Resource, UserPage_PreferredLanguageTitleLabel %>"></asp:Label>
        <br />
        <asp:DropDownList ID="LanguageDropDownList" runat="server" DataTextField="Language_Name"
            DataValueField="Language_Code" DataSourceID="LanguagesDataSource">
        </asp:DropDownList>
        <asp:SqlDataSource ID="LanguagesDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>"
            SelectCommand="Nivdal_GetListOfLanguages" SelectCommandType="StoredProcedure">
        </asp:SqlDataSource>
        <br /><br />
        <asp:Label ID="PersonalMessageTitleLabel" runat="server" SkinID="InfoLabel"
            Text="<%$ Resources:Resource, SendInvitation_PersonalMessage %>"></asp:Label>
        <br />
        <CustomControls:TextArea runat="server" ID="PersonalMessageTextBox" MaxLength="4000"
            TextMode="MultiLine" Rows="3" Height="160px" Width="420px"></CustomControls:TextArea>

        <br />
        <br />
        <asp:Button ID="SubmitButton" runat="server" Text="<%$ Resources:Resource, Global_Submit %>"
            OnClick="SubmitButton_Click" CssClass="GreenSmallButtonStyle" />
        
    </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="PageNamePlaceHolder" runat="server">
</asp:Content>
